package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.BillCheckStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
* <p>
* 字段对应关系
* </p>
*
* @author huangrensen
* @since 2023-09-19
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_bill_column_match")
public class SysColumnMatch extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    /**
    * 关联平台
    */
    private String platformKey;

    /**
     * 账单类型
     */
    private String billType;

    /**
    * 原始字段
    */
    private String sourceColumn;

    /**
    * 标准字段
    */
    private String standardColumn;

    /**
    * 电商平台账单项目
    */
    private String originalBillProject;

    /**
     * 账单辅助条件
     */
    private Integer billCheck = BillCheckStatusEnum.TRANSFER.getValue();
    @TableField(exist = false)
    private String billCheckName;

    @TableField(exist = false)
    private List<SysColumnMatchCondition> conditionList;
}
